package com.yc.yjh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 廖老师
 * @since 2023-07-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("best_player")
public class BestPlayer implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private String replace;

    private Integer teamId;

    @TableField(exist = false)
    private Teams teams;
    @TableField(exist = false)
    private Players players;
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReplace() {
        return replace;
    }

    public void setReplace(String replace) {
        this.replace = replace;
    }

    public Integer getTeamId() {
        return teamId;
    }

    public void setTeamId(Integer teamId) {
        this.teamId = teamId;
    }


    @Override
    public String toString() {
        return "BestPlayer{" +
        "id=" + id +
        ", name=" + name +
        ", replace=" + replace +
        ", teamId=" + teamId +
        "}";
    }
}
